<template>
  <div class="home">

      项目名：<input type="text" v-model="name"><br>
      git项目名：<input type="text" v-model="projectName"><br>
      git地址：<input type="text" v-model="gitAddress"><br>
      <input type="submit" @click="submit">

  </div>

</template>

<script>
  import axios from 'axios'
    // @ is an alias to /src
    export default {
        name: 'AddForm',
        data(){
          return{
              name:'测试',
              projectName:'fe-sms',
              gitAddress:'http://gitlab.homeking365.com/servant/fe-sms.git'
          }
        },
        methods:{
            submit(){
              const obj = {name:this.name, gitAddress:this.gitAddress, projectName:this.projectName}
                console.log(obj)
                axios.post('http://128.hktqa.cn:3000/api/doAdd', obj)

            },
        }
    }
</script>
